<style>
	label{width:120px!important;}
</style>
<div id="box">
  <form action="<?php echo base_url(); ?>admin/guild/<?php if(isset($_GET['id'])) echo "update?id=".$_GET["id"];else echo "insert";?>" method="post" enctype="multipart/form-data">
    <fieldset id="personal">
      <legend>&nbsp;&nbsp;Edit Guild&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php if(count($detail)>0) echo $detail['id'];else echo "ID"; ?>
      <br>
      <label>Name : </label>
      <input name="name" type="text" value="<?php echo $detail['name']; ?>">
      <!--<br>
      <label>Address : </label>
      <input name="address" type="text" value="<?php echo $detail['address']; ?>">-->
      <br>
      <label>Avatar : </label>
      <input name="fuavatar" type="file" tabindex="2">
      <img src="<?php echo base_url(); ?>uploads/guild/<?php echo $detail["avatar"];?>" width="150"/><br />
      <!--<label>Category : </label>
      <input name="category" type="text" value="<?php echo $detail['category'] ?>"/>
      <br>-->
      <label>Price Of Half Day : </label>
      <input name="priceofhalfday" type="text" value="<?php echo $detail['priceofhalfday']; ?>">
      <br>
      <label>Price Of Day : </label>
      <input name="priceofday" type="text" value="<?php echo $detail['priceofday']; ?>">
      <br>
      <label>Provide : </label>
      <select name="provide" style="margin-left:0;">
      	<option value="0">Choose Provide</option>
      	<option value="Bagan" <?php if($detail['provide']=="Bagan") echo "selected" ?>>Bagan</option>
        <option value="Inle" <?php if($detail['provide']=="Inle") echo "selected" ?>>Inle</option>
        <option value="Madalay" <?php if($detail['provide']=="Madalay") echo "selected" ?>>Madalay</option>
        <option value="Yangon" <?php if($detail['provide']=="Yangon") echo "selected" ?>>Yangon</option>
      </select>
      <br>
      <label>Language : </label>
      <select name="language" style="margin-left:0;">
      	<option value="0">Choose Language</option>
      	<option value="English" <?php if($detail['language']=="English") echo "selected" ?>>English</option>
        <option value="French" <?php if($detail['language']=="French") echo "selected" ?>>French</option>
        <option value="Spainish" <?php if($detail['language']=="Spainish") echo "selected" ?>>Spainish</option>
        <option value="German" <?php if($detail['language']=="German") echo "selected" ?>>German</option>
		<option value="Chinese" <?php if($detail['language']=="Chinese") echo "selected" ?>>Chinese</option>
        <option value="Russian" <?php if($detail['language']=="Russian") echo "selected" ?>>Russian</option>
      </select>
      <br>
      <label>Description : </label>
      <?php 
										$fck = new FCKeditor('description');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['description'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Tour Guild Service : </label>
      <?php 
										$fck = new FCKeditor('ourtourguildservice');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['ourtourguildservice'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
                                       <br />
      <label>Guides' Responsibility : </label>
      <?php 
										$fck = new FCKeditor('responsibility');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['responsibility'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label style="width:170px!important;">Ability To Deliver Good Service: </label>
      <?php 
										$fck = new FCKeditor('abilitytodeliver');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['abilitytodeliver'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label style="width:130px!important;">Terms And Conditions : </label>
      <?php 
										$fck = new FCKeditor('termsandconditions');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['termsandconditions'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Status : </label>
      <select name="status">
        <option value="0">Choice Status</option>
        <option value="1" <?php if($detail['status']==1) echo "selected"; ?>>Highlights</option>
        <option value="2" <?php if($detail['status']==2) echo "selected"; ?>>Normal</option>
        <option value="3" <?php if($detail['status']==3) echo "selected"; ?>>Hidden</option>
      </select>
      <br />
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
